﻿#ifndef GRAPHICSMFCITEM_H
#define GRAPHICSMFCITEM_H

#include <QGraphicsItem>
#include <QGraphicsWidget>

class GraphicsMFCItem : public QGraphicsObject
{
    Q_OBJECT
public:
    GraphicsMFCItem();

    void setActualValue(double v);
    void setDesiredValue(double v);
    QRectF boundingRect() const override;
    QPointF keyPoint(int i);
signals:
    void setPointChanged(double setPoint);
private:
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
    void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override;
    double m_actualValue = 0;
    double m_desiredValue = 0;
};

#endif // GRAPHICSMFCITEM_H
